<%@page import="forum.User"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>Send PM</title>
</head>
<body>
	<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
	<a href="index.jsp">Back To Index!</a><br><br>
	
	<form name="sendPM" method="post" action="ForumController">
		<big>From:</big>  ${sessionScope.user.email}<br>
		<big>To:</big> 
		<select name="to">
			<c:forEach var="user" items="${sessionScope.users}" varStatus="status">
				<option value = "${user.userID}" name="${user.userID}">${user.email}</option>
			</c:forEach>
		</select><br>
		<input type="hidden" name="action" value="createPM">
	 	<big>Message:</big>	<br>
	 	<textarea id="content" name="content" style="position:inherit;height:100px;width:300px;overflow:auto;font-family:Times New Roman;font-size:100%;"></textarea><br>
		<input type="submit" value="Send!" />
	</form>

</body>
</html>